package com.reason.order.feign;

import com.reason.order.pojo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 陈正果
 * @date 2020/7/2 10:56
 */
@FeignClient(name = "order")
public interface OrderFeign {

    @RequestMapping("/order/findByUsername")
    public Order findByUsername(@RequestParam String username);

    @RequestMapping("/order/findById")
    public Order findById(@RequestParam String id);
}
